<?php
namespace app\model;
class Payment extends Common
{
    const PAYMENT_STATUS_PENDING = 1;
    const PAYMENT_STATUS_APPROVED = 2;
    const PAYMENT_STATUS_REJECTED = -1;
    public function member()
    {
        return $this->hasOne(Member::class,"id",'member_id')->field("id,email");
    }

    public function coin()
    {
        return $this->hasOne(PayCoins::class,"id",'coin_id')->field("id,coin_name");
    }

}